﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="DocumentManagement.Views.UnprocessedYuGuDan" %>

<%@ Import Namespace="DocumentManagement.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        分派预估单</h2>
    <table>
        <tr>
            <td>
                预估编号
            </td>
            <td>
                委托来源
            </td>
            <td>
                委托方
            </td>
            <td>
                项目座落
            </td>
            <td>
                预估单状态
            </td>
            <td>
                分配给
            </td>
            <td>
            </td>
        </tr>
        <%foreach (var ygd in this.Model.YuGuDans)
          { %>
        <tr>
            <%using (this.Html.BeginForm("ProcessYuGuDan", "yugudan", FormMethod.Post))
              {%>
            <td>
                <input type="hidden" name="id" value="<%=ygd.id %>" />
                <a target="_blank" href="<%=this.Url.Action("ShowYuGuDanDetail", "yugudan", new {id = ygd.id}) %>">
                    <%=ygd.ygbh %>
                </a>
            </td>
            <td>
                <%=ygd.wtly%>
            </td>
            <td>
                <%=ygd.wtf%>
            </td>
            <td>
                <%=ygd.xmzl %>
            </td>
            <td>
                <%=this.Html.DropDownList("state", new SelectListItem[] {
                      new SelectListItem() { Text = Utility.GetEnumText(YuGuDanState.WeiChuLi), Value=((int)YuGuDanState.WeiChuLi).ToString(), Selected=true},
                      new SelectListItem() { Text = Utility.GetEnumText(YuGuDanState.AssignedToEmployeeToGetReport), Value=((int)YuGuDanState.AssignedToEmployeeToGetReport).ToString()},
                      new SelectListItem() { Text = Utility.GetEnumText(YuGuDanState.AssignedToEmployeeToCharge), Value=((int)YuGuDanState.AssignedToEmployeeToCharge).ToString()},
                      new SelectListItem() { Text = Utility.GetEnumText(YuGuDanState.DocumentedDirectly), Value=((int)YuGuDanState.DocumentedDirectly).ToString()},
                  })
                %>
            </td>
            <td>
                <%=this.Html.DropDownList("assigneeId", GetEmployeeDropList())%>
            </td>
            <td>
                <input type="submit" value="处理" />
            </td>
            <%}%>
        </tr>
        <%}%>
    </table>
</asp:Content>
